package com.zhongwang.mms.module.material.dao;

import com.zhongwang.mms.module.material.model.ComplexStorageModel;
import com.zhongwang.mms.module.purchase.model.VWProject;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description: 库存综合查询 数据访问层
 * @Author: China.zy
 * @Date: 2020/3/21
 */
@Repository
public interface ComplexStorageDao {

    /**
     * 根据条件查询库存综合信息
     * @param complexStorageModel 条件
     * @return list
     */
    List<ComplexStorageModel> findComplexStorage(ComplexStorageModel complexStorageModel);

    int createComplexStorageTempTable(ComplexStorageModel complexStorageModel);

    int createComplexStorageNotMonyTempTable(ComplexStorageModel complexStorageModel);
    /**
     * 根据条件查询库存综合信息串料专用
     * @param complexStorageModel 条件
     * @return list
     */
    List<ComplexStorageModel> findChangelistComplexStorage(ComplexStorageModel complexStorageModel);

    /**  getProjectByCode 根据项目号获取项目信息
     * @param proCode 项目号
     * @return com.zhongwang.mms.module.purchase.model.VWProject
     * @exception
     * @author 徐一贺
     * @date 2020/12/7 12:10
     */
    VWProject getProjectByCode(String proCode);
}